﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace NetDon.OA.Interface
{
    public  interface  IIssuingOrderOnWayTrackService
    {
        int GetOrderCount(IssuingOrderOnWayTrackSearchCriteria criteria);


        DataTable SearchIssuingOrderOnWayTrackByCondition(IssuingOrderOnWayTrackSearchCriteria criteria, string sortExpression,
                                          SortDirection sortDirection, int pageSize, int pageIndex);

        bool AddIssuingOrderOnWayTrack(IssuingOrderOnWayTrackData issuingOrderData);

        bool ModifyIssuingOrderOnWayTrack(IssuingOrderOnWayTrackData issuingOrderData);


        bool RemoveIssuingOrderOnWayTrack(Guid issuingOrderOnWayTrackId);


        IssuingOrderOnWayTrackData GetIssuingOrderOnWayTrack(Guid issuingOrderOnWayTrackId);

        IssuingOrderOnWayTrackData GetIssuingOrderOnWayTrackByIssuingOrderId(Guid issuingOrderId);

        bool RemoveIssuingOrderOnWayTrackComment(Guid issuingOrderOnWayTrackCommentId);

        IssuingOrderOnWayTrackCommentData GetIssuingOrderOnWayTrackComment(Guid issuingOrderOnWayTrackCommentId);


        IEnumerable<IssuingOrderOnWayTrackCommentData> GetIssuingOrderOnWayTrackCommentById(
            Guid issuingOrderOnWayTrackId);
    }
}
